package com.qo.qsdk.param;

import android.os.Parcel;
import android.os.Parcelable;

public class PayParams implements Parcelable {

    private String productId;
    private String productName;
    private String productDesc;
    private String orderNo;
    private String extend;

    private String roleId;
    private String roleName;//角色名称
    private String roleLevel;//角色等级
    private String power;//战斗力
    private String serverId;//区服ID
    private String serverName;//区服名

    private String partyId;
    private String partyName;
    private String vip;

    public PayParams() {
    }

    protected PayParams(Parcel in) {
        productId = in.readString();
        productName = in.readString();
        productDesc = in.readString();
        orderNo = in.readString();
        extend = in.readString();
        roleId = in.readString();
        roleName = in.readString();
        roleLevel = in.readString();
        power = in.readString();
        serverId = in.readString();
        serverName = in.readString();
        partyId = in.readString();
        partyName = in.readString();
        vip = in.readString();
    }

    public static final Creator<PayParams> CREATOR = new Creator<PayParams>() {
        @Override
        public PayParams createFromParcel(Parcel in) {
            return new PayParams(in);
        }

        @Override
        public PayParams[] newArray(int size) {
            return new PayParams[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(productId);
        dest.writeString(productName);
        dest.writeString(productDesc);
        dest.writeString(orderNo);
        dest.writeString(extend);
        dest.writeString(roleId);
        dest.writeString(roleName);
        dest.writeString(roleLevel);
        dest.writeString(power);
        dest.writeString(vip);
        dest.writeString(serverId);
        dest.writeString(serverName);
        dest.writeString(partyId);
        dest.writeString(partyName);
    }

    public String getProductId() {
        return productId == null ? "" : productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName == null ? "" : productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductDesc() {
        return productDesc == null ? "" : productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getOrderNo() {
        return orderNo == null ? "" : orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getExtend() {
        return extend == null ? "" : extend;
    }

    public void setExtend(String extend) {
        this.extend = extend;
    }

    public String getRoleId() {
        return roleId == null ? "" : roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName == null ? "" : roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleLevel() {
        return roleLevel == null ? "" : roleLevel;
    }

    public void setRoleLevel(String roleLevel) {
        this.roleLevel = roleLevel;
    }

    public String getPower() {
        return power == null ? "" : power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getServerId() {
        return serverId == null ? "" : serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getServerName() {
        return serverName == null ? "" : serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getPartyId() {
        return partyId == null ? "" : partyId;
    }

    public void setPartyId(String partyId) {
        this.partyId = partyId;
    }

    public String getPartyName() {
        return partyName == null ? "" : partyName;
    }

    public void setPartyName(String partyName) {
        this.partyName = partyName;
    }

    public String getVip() {
        return vip == null ? "" : vip;
    }

    public void setVip(String vip) {
        this.vip = vip;
    }

}
